<?php
require_once 'class/control.class.php';
ob_start();
?>
	<div id="destaque">
		<ul>
			<?php 
				$obj = new Control('visualizar','destaques','1');
				$obj->Lister();
			?>
		</ul>	
	</div>
	<div id="conteudo" style="margin-top:20px;">
		<div id="left">
			<?php 
				if($_GET['c']){
					$obj = new Control('visualizar','posts',array(0 => 'c', 1 => $_GET['c']));
				}elseif($_GET['tag']){
					$obj = new Control('visualizar','posts',array(0 => 't', 1 => $_GET['tag']));
				}elseif($_GET['arquivo']){
					$obj = new Control('visualizar','posts',array(0 => 'a', 1 => $_GET['arquivo']));
				}elseif($_GET['s']){
					$obj = new Control('visualizar','posts',array(0 => 's', 1 => $_GET['s']));
				}else{
					$obj = new Control('visualizar','posts','');
				}
				$obj->Lister();
			?>
			<br class="clear" />
		</div>
		<div id="right">
			<form id="pesquisaBlog" action="blog.php" method="get" >
				<input type="submit" class="submit"  />
				<input type="text" name="s" class="search"  />
			</form>
			<br class="clear"/><br />
			<h1 class="cor_1 border">Categorias</h1>
			<ul id="categorias">
			<?php 
				$obj = new Control('visualizar','categorias','');
				$obj->Lister();
			?>
			</ul>
			<br />
			<h1 class="cor_1 border">Tags</h1>
			<?php 
				$obj = new Control('tags','posts','');
				$obj->Lister();
			?>
			<br />
			<h1 class="cor_1 border">Arquivo</h1>
			<select id="arquivoBlog" >
				<option>Arquivo Blog</option>
				<?php 
					$obj = new Control('arquivo','posts','');
					$obj->Lister();
				?>
			</select>
			<br /><br /><br />
			<div class="fb-like-box" data-href="https://www.facebook.com/pages/ZON-Design/171193086261253?fref=ts" data-width="230" data-show-faces="true" data-stream="false" data-header="false"></div>
		</div>
		<br class="clear" />
	</div>
<?php 
$conteudo = ob_get_contents();
ob_get_clean();
include ("master.php");
?>	